const user={
	namespaced:true,
	state: {
		count: 100,
	},
	getters: {
		doubleCount(state) {
			return state.count * 2;
		}
	},
	mutations: {
		update(state, payload) {
			state.count += payload;
		}
	},
	actions: {
		updateSync(context, payload) {
			setTimeout(() => {
				context.commit("update", payload)
			}, 1000)
		}
	},
}
export default user;